import java.math.BigDecimal;

/**
 * SavingsAccount is just an Account that can calculate interest.
 * 
 * @author svene_000
 *
 */
public class SavingsAccount extends Account{
	private static BigDecimal interestRate = new BigDecimal("1.25");
	
	public SavingsAccount(Customer acctCustomer)
	{
		super(acctCustomer);
	}
	
	public SavingsAccount(int accountNumber)
	{
		super(accountNumber);
	}
	
	/**
	 * Add 1.25% to the principal balance.
	 */
	public void calculateInterest()
	{
		balance = balance.add(balance.multiply(interestRate).divide(new BigDecimal("100")));
	}
	
	public void print()
	{
		super.print("Savings");
	}
	
}
